<?php
/**
 * Login_Controller_Login
 * login, forgot and registry controller
 * 
 * @author Adrian Stolarski
 */
class Login_Controller_Login implements Login_Controller_Mainable {
    
    /**
     *
     * @var type $login_model_handler
     * login model handler
     */
    public $login_model_handler;
    /**
     *
     * @var type $view_handler
     * view handler
     */
    public $view_hanlder;
    
    /**
     * constructor()
     */
    public function __construct() {
        $this->login_model_handler = new Login_Model_Login;
    }
    
    /**
     * main()
     * generate page
     * 
     * @param array $variables
     */
    public function main(array $variables = null) {
        $page = $this->login_model_handler->main($variables);
        $template = $page['template'];
        $view = new Core_Model_Oldview($template);
        $view->assign('page', $page);
        //$view = new Core_Controller_View;
        //$view->view($page, $template, 'page');
        
    }
}
